#include"SelectServer.hpp"

int main(int argc,char*argv[])
{
    if(argc != 2)
    {
        cout << "Usage: " << argv[0] << " port:" << endl;
        return 1;
    }
    ENABLE_CONSOLE_LOG();
    uint16_t local_port = stoi(argv[1]);//端口
    unique_ptr<SelectServer> ssvr = make_unique<SelectServer>(local_port);
    ssvr->Init();
    ssvr->loop();
    return 0;
}